<% #endcoding:utf-8%>
<div class="row">
  <div class="user-avatar col-md-1">
    avatar
  </div>
  <div class="user-info col-md-11">
    <p>用户名 ：<%=userinfo.name%></p>
    <p>用户类型：<%=userinfo.user_type ? "工厂" : "咨询师"%></p>

  </div>

</div>

<div class="row">
  <h3 class="demand-top">我的名片</h3>
  <div class="name-card">
    <h3 class="name"><%=@info.name%></h3>
    <p class="phone">手机 ： <%=@info.phone%></p>
    <p class="good-at">地址 ： <%=@info.address%></p>
  </div>
  <p class="text-center" style="margin-top:15px"><%=link_to "完善资料","/editinfo",:class=>"btn btn-success"%></p>
</div>